import React, {PureComponent} from 'react';
import {StyleSheet, View, Text, TouchableOpacity} from 'react-native';

export default class extends PureComponent {

    render() {
        const {linkToRegister} = this.props;
        return (
            <View style={styles.container}>
                <TouchableOpacity onPress={linkToRegister}>
                    <Text>注册</Text>
                </TouchableOpacity>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container: {
        flexDirection: 'row',
        justifyContent: 'space-between',
        margin: 40,
        marginTop: 24
    }
});
